<template>
  <div id="app">
    <div id="header">
      <Header></Header>
    </div>
    <div id="context">

      <div id="sider">
        <Sider></Sider>
      </div>
      <div id="container">
        <router-view/>
      </div>
    </div>
  </div>
</template>

<script>
import Sider from "@/components/home/sider.vue";
import Header from "@/components/home/header.vue";

export default {
  name: "home",
  components: {
    Sider,
    Header
  }
};
</script>

<style scoped>
#header {
  display: flex;
  height: 50px;
  top: 0;
  padding: 0 0 0 20px;
  color: #f1f1f1;
  background-color: #151f29;
}
#context {
  display: flex;
  justify-content: flex-start;
  height: calc(100vh - 50px);
}
#sider {
  width: 200px;
  height: 100%;
  overflow: hidden;
}
#container {
  height: 100%;
  padding: 0 30px;
  width: calc(100vw - 200px);
  overflow-y: auto;
}
</style>
